var express = require("express");
var fs = require("fs");
var query = require("querystring");
var http = express();
http.listen(6500);
//允许跨域\
http.use(function(req,res,next){
    res.header("Access-Control-Allow-Origin","*");
    next();
})
http.get("/getAll",function (req,res) {
    fs.readFile("yanjing.json","utf-8",function (err,data) {
        var data = JSON.parse(data);
        res.send(data.data.productList)
    })
})